//
//  NetWorkTool.swift
//  weibo_swift
//
//  Created by dulinlong on 15/6/28.
//  Copyright © 2015年 sheji_56. All rights reserved.
//

import UIKit
import AFNetworking

class NetWorkTool: AFHTTPSessionManager {
    

   private static let instance : NetWorkTool = {
        let baseUrl = NSURL(string: "https://api.weibo.com/")
        let tools = NetWorkTool(baseURL: baseUrl)
    
        tools.responseSerializer.acceptableContentTypes = NSSet(objects:"application/json", "text/json", "text/javascript","text/plain") as! Set<String>
        return tools
    }()
    
    class func sharedNetWorkTool() -> NetWorkTool {
        return instance
    }
}
